﻿using hfcloud.Context;
using hfcloud.Models;
using Microsoft.AspNetCore.Components;

namespace hfcloud.Pages.Devices.DeviceManager;

partial class DeviceManager
{
    [Inject]MysqlDbContext dbContext { get; set; }
    public List<Device> Devices { get; set; }
    protected override void OnInitialized()
    {
        Devices = dbContext.device.ToList();
        base.OnInitializedAsync();
    }
}